<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   

    <script>
        var arr = [83,75,65,59,92];
        var sum = 0;
        var max  = 0;
        var min =100;
       for(var i=0;i<5;i++)
       {
           sum = sum+arr[i];
           if(arr[i]>max)
           {
               max=arr[i]
           } 
           if(arr[i]<min)
           {
               min=arr[i]
           }
       }
       document.write("5门成绩:"+arr+"    <br/> ") 
       document.write("总分:"+sum+"    <br/> ") 
       document.write("最高分:"+max+"    <br/> ") 
       document.write("最低分:"+min+"    <br/> ") 
       document.write("平均分:"+sum/5+"    <br/> ") 

    </script>
</body>
</html>